<?php 

echo $this->element('top_menu', array());

?>


<h1>multa</h1>
<form action="/test_1/Multe/save" id="form_multa" method="post">
	Id <input type="text" name="id" value="<?php echo $multa['Multa']['id'];?>" /> <br />
	Foto <input type="text" name="foto" value="<?php echo $multa['Multa']['foto_id'];?>" /> <br />
	Targa <input type="text" name="targa" value="<?php echo $multa['Multa']['targa'];?>" /> <br />
	Via <input type="text" name="via" value="<?php echo $multa['Multa']['via'];?>" /> <br />
	Comune <input type="text" name="comune" value="<?php echo $multa['Multa']['comune'];?>" /> <br />
	Infrazione <input type="text" name="infrazione" value="<?php echo $multa['Multa']['infrazione'];?>" /> <br />
	Note <input type="text" name="note" value="<?php echo $multa['Multa']['note'];?>" /> <br />
	Agente <input type="text" name="agente" value="<?php echo $multa['Multa']['agente_id'];?>" /> <br />
	Importo <input type="text" name="importo" value="<?php echo $multa['Multa']['importo'];?>" /> <br />
	<input type="hidden" name="stato" value="D" />

	<?php 
		if(!empty($multa['Multa']['id'])) {	?>		
			Stato:
			<select name='stato'>
			<?foreach ($STATI as $key => $value) {?>
	  			<option value='<? echo $key?>' <?if($key == $multa['Multa']['stato']) echo " selected='selected' " ?> ><? echo $value ?></option>";
			<? } ?> 
			</select> 
	<? } ?>
	<br>
	<input type="submit" size="30" value="Conferma" />
	<a type="button" href="/test_1/multe">Esci</a>

	
	
	<?php unset($multa); ?> 


</form>